package com.jshop.seckill.web.controller;

import com.jshop.seckill.domain.TbUser;
import com.jshop.seckill.web.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author yaxiongliu
 * @CreateDate
 * @Version 1.0
 * @Description //TODO 用户管理
 */
@RestController
public class UserController {

    //注入service服务
    @Autowired
    private UserService userService;


    @RequestMapping("/user")
    public List<TbUser> showUser(){
        //查询list集合
        List<TbUser> uList = userService.getAllUser();
        return uList;
    }
    /**
     * 更新用户信息
     */
    /**
     * 展示用户信息
     */

}
